![]()
This document describes how to design a model and transformation configurations so that you can build multiple variants of an application without creating individual TC files for all variants.
Use the following files together with the tutorial: BuildVariants_Tutorial.zip
This sample wsbuildvariants.zip demonstrates how to generate code and build executables for various target platforms with one transformation configuration (TC) and build variants.
It also contains TracingController class which demonstrates how to programmatically turn on tracing for the entire execution of an application.
Writing Build Variant scripts with a dynamic behavior
Learn how a build variant script can access the kind of TC being built, environment variables etc, in order to create a very dynamic build user interface.
Using Build Variants to control which version of a library to link with
Learn which TC properties a build variant script is allowed to set.
Handling errors in Build Variant scripts
Learn how errors can be handled in a build variant script.